package com.sleepless.my.repository;

import com.sleepless.my.entity.UsersEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.UUID;

@Repository
public interface UsersRepository extends JpaRepository<UsersEntity, String>  {
    UsersEntity findRoleByusername(String username);
    UsersEntity findByusername(String username);
    UsersEntity findByuuid(UUID uuid);
    boolean existsByusername(String userName);
}
